package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Setmeal;
import com.itheima.reggie.domain.SetmealDish;

import java.util.List;

public interface SetmealService {
    //套餐列表
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize,String name);
    //新增套餐
    void save(Setmeal setmeal);
    //修改套餐回显
    Setmeal findById(Long id);
    //修改套餐
    void update(Setmeal setmeal);
    //批量删除、删除
    void delete(List<Long> ids);
    //批量启售、禁售
    void updateStatus(Integer status, List<Long> ids);
    //h5套餐展示
    List<Setmeal> findSeatmealList(Long categoryId, Integer status);
    //显示套餐内容
    List<SetmealDish> findSetmealDishById(Long id);
}
